# 字符串遍历
'''
a_str = "hello itcast"
for char in a_str:
    print(char, end=' ')
'''

# 列表遍历
'''
a_list = [1, 2, 4, 6, 7]
for num in a_list:
    print(num, end=' ')

'''

# 元组遍历
'''
a_turple = (1, 3, 4, 41)
for num in a_turple:
    print(num, end=' ')
'''

# 字典遍历

'''
dict = {'name': 'zhangsan', 'sex': 'm'}
for key in dict.keys():
    print(key)
for value in dict.values():
    print(value)
for item in dict.items():
    print(item)
# 遍历字典的key-value
for key, value in dict.items():
    print("key=%s,value=%s" % (key, value))
'''
